package com.guigu.base.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 企业
 * </p>
 *
 * @author TaoLong
 * @since 2021-11-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("d_tenant")
@ApiModel(value="Tenant对象", description="企业")

public class Tenant implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键ID")
    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private Long id;

    @ApiModelProperty(value = "企业编码")
    private String code;

    @ApiModelProperty(value = "企业名称")
    private String name;

    @ApiModelProperty(value = "类型#{CREATE:创建;REGISTER:注册}")
    private String type;

    @ApiModelProperty(value = "状态#{NORMAL:正常;FORBIDDEN:禁用;WAITING:待审核;REFUSE:拒绝}")
    private String status;

    @ApiModelProperty(value = "是否内置")
    private Boolean readonly;

    @ApiModelProperty(value = "责任人")
    private String duty;

    @ApiModelProperty(value = "有效期 为空表示永久")
    private Date expirationTime;

    @ApiModelProperty(value = "logo地址")
    private String logo;

    @ApiModelProperty(value = "企业简介")
    private String describe;

    @ApiModelProperty(value = "用户密码有效期 单位：天 0表示永久有效 ")
    private Integer passwordExpire;

    @ApiModelProperty(value = "是否多地登录")
    private Boolean isMultipleLogin;

    @ApiModelProperty(value = "密码输错次数 密码输错锁定账号的次数 单位：次 ")
    private Integer passwordErrorNum;

    @ApiModelProperty(value = "账号锁定时间 密码输错${passwordErrorNum}次后，锁定账号的时间 单位： h | d | w | m 单位：时 | 天 | 周 | 月 如：0=当天晚上24点 2h = 2小时   2d = 2天  ")
    private String passwordErrorLockTime;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "创建人")
    private Long createUser;

    @ApiModelProperty(value = "修改时间")
    private Date updateTime;

    @ApiModelProperty(value = "修改人")
    private Long updateUser;


}
